<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>保密承诺书（项目）</title>
    <style>
        body {
            font-family: "SimSun", serif;
            font-size: 14pt; 
            line-height: 1.5;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
        }

        .a4-container {
            width: 210mm;
            min-height: 297mm;
            padding: 25.4mm 31.8mm;
            background-color: #fff;
            border-radius: 8px;
            position: relative;
            box-sizing: border-box;
        }

        .title {
            font-size: 16pt; 
            font-weight: bold;
            text-align: center;
            color: #000;
            margin-bottom: 24pt;
            line-height: 1.5;
        }

        .content-text {
            color: #000;
            line-height: 1.5;
            margin-bottom: 12pt;
            text-indent: 2em;
            text-align: justify;
        }

        .rule-list {
            list-style-type: none;
            padding-left: 0;
            color: #000;
            line-height: 1.5;
            margin-bottom: 24pt;
        }

        .rule-list li {
            counter-increment: item;
            margin-bottom: 12pt;
            text-indent: 2em;
            text-align: justify;
        }

        .rule-list li:before {
            content: counter(item) "、";
            font-weight: bold;
        }

        .rule-list ol {
            list-style-type: none;
            padding-left: 20pt;
        }

        .rule-list ol li {
            counter-increment: subitem;
        }

        .rule-list ol li:before {
            content: counter(item) "." counter(subitem) " ";
        }

        .editable {
            border-bottom: 1px solid #000;
            outline: none;
            display: inline-block;
            min-width: 3em;
            text-align: center;
            text-indent: 0em;
        }

        .print-button {
            position: fixed;
            top: 50%;
            right: 20px;
            transform: translateY(-50%);
            padding: 10px 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            font-family: "SimSun", serif;
        }

        .print-button:hover {
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        }

        .signature-area {
            display: flex;
            justify-content: space-between;
            margin-top: 48pt;
        }

        .signature-item {
            text-align: left;
            line-height: 1.5;
        }

        @media print {
            body {
                background-color: transparent;
            }

            .a4-container {
                box-shadow: none;
                border-radius: 0;
                width: 210mm;
                min-height: 297mm;
                margin: 0;
                padding: 25.4mm 31.8mm;
                page-break-after: avoid;
            }

            .print-button {
                display: none;
            }
        }
    </style>
</head>

<body>
    <div class="a4-container">
        <h1 class="title">个人保密承诺书</h1>
        <p class="content-text">鉴于本人（承诺人）<span class="editable" contenteditable="true" data-default="姓名">姓名</span>（身份证号：<span class="editable" contenteditable="true" data-default="身份证号">身份证号</span>）参与<span class="editable" contenteditable="true" data-default="项目名称">项目名称</span>（以下简称"本项目"），因工作需要将接触或知悉涉及本项目的保密信息，为保护相关方合法权益，本人郑重承诺如下：</p>
        
        <ol class="rule-list">
            <li><strong>保密信息范围：</strong>
                <ol type="1">
                    <li>本项目涉及的<strong>技术资料</strong>（如设计方案、源代码、算法、专利等）；</li>
                    <li>本项目涉及的<strong>商业信息</strong>（如客户数据、财务信息、市场策略等）；</li>
                    <li>本项目相关的<strong>未公开文件</strong>（如会议纪要、内部报告等）；</li>
                    <li>其他以书面、口头或电子形式明确标注为"保密"或应合理视为保密的信息。</li>
                </ol>
            </li>
            
            <li><strong>保密义务：</strong>
                <ol type="1">
                    <li>对保密信息严格保密，未经项目方书面授权，不得以任何形式（包括复制、传输、披露等）向第三方泄露；</li>
                    <li>仅将保密信息用于本项目工作所需，不得用于个人或其他无关用途；</li>
                    <li>采取合理措施（如加密、物理隔离等）保护保密信息，防止泄露或丢失；</li>
                    <li>在项目终止或保密信息不再需要时，按项目方要求销毁或返还全部保密资料。</li>
                </ol>
            </li>
            
            <li><strong>保密期限：</strong>本承诺书有效期自签署之日起至以下较晚者为止：
                <ol type="1">
                    <li>本项目终止后<span class="editable" contenteditable="true" data-default="3">3</span>年；</li>
                    <li>保密信息依法进入公开领域。</li>
                </ol>
            </li>
            
            <li><strong>知识产权：</strong>本人因参与本项目产生的所有工作成果（包括但不限于发明、设计、文档等）的知识产权均归项目方所有。</li>
            
            <li><strong>资料管理：</strong>
                <ol type="1">
                    <li>所有保密资料应在项目方指定的安全环境中存储；</li>
                    <li>不得在私人电子设备中存储保密信息；</li>
                    <li>纸质文件应锁入专用文件柜。</li>
                </ol>
            </li>
            
            <li><strong>违约责任：</strong>
                <ol type="1">
                    <li>如违反本承诺，本人愿承担一切法律责任（包括赔偿损失、行政处罚等）；</li>
                    <li>违约金为人民币<span class="editable" contenteditable="true" data-default="XX">XX</span>万元；</li>
                    <li>赔偿范围包括项目方实际损失、维权费用（律师费、调查费等）及预期利益损失。</li>
                </ol>
            </li>
            
            <li><strong>法律适用：</strong>本承诺书适用中华人民共和国法律，争议提交<span class="editable" contenteditable="true" data-default="项目方所在地">项目方所在地</span>人民法院管辖。</li>
            
            <li><strong>其他条款：</strong>
                <ol type="1">
                    <li>本承诺书独立于项目其他协议；</li>
                    <li>未尽事宜由双方协商解决。</li>
                </ol>
            </li>
        </ol>
        
        <div class="signature-area">
            <div class="signature-item">
                <p>承诺人（签字）：</p>
                <p style="height: 20pt; margin-top: 20pt;"></p>
                <p>日期：<span class="editable" contenteditable="true" data-default="年/月/日">年/月/日</span></p>
            </div>
            <div class="signature-item">
                <p>项目方（盖章）：</p>
                <p style="height: 20pt; margin-top: 20pt;"></p>
                <p>日期：<span class="editable" contenteditable="true" data-default="年/月/日">年/月/日</span></p>
            </div>
        </div>
    </div>
    <button class="print-button" onclick="window.print()">打印</button>
    <script>
        const currentDate = new Date();
        const year = currentDate.getFullYear();
        const month = String(currentDate.getMonth() + 1).padStart(2, '0');
        const day = String(currentDate.getDate()).padStart(2, '0');
        const currentDateStr = `${year}年${month}月${day}日`;
        
        document.addEventListener('DOMContentLoaded', function() {
            const editableElements = document.querySelectorAll('.editable');
            
            editableElements.forEach(element => {
                // 设置默认值
                if(element.dataset.default && !element.textContent.trim()) {
                    element.textContent = element.dataset.default;
                }
                
                // 聚焦事件
                element.addEventListener('focus', function() {
                    if(this.textContent === this.dataset.default) {
                        this.textContent = '';
                    }
                });
                
                // 失焦事件
                element.addEventListener('blur', function() {
                    if(!this.textContent.trim()) {
                        this.textContent = this.dataset.default || '';
                    }
                });
                
                // 同步修改
                element.addEventListener('input', function() {
                    const defaultVal = this.dataset.default;
                    if(defaultVal) {
                        const allSameElements = document.querySelectorAll(`.editable[data-default="${defaultVal}"]`);
                        allSameElements.forEach(sameElement => {
                            if(sameElement !== this) {
                                sameElement.textContent = this.textContent;
                            }
                        });
                    }
                });
            });

            // 自动填充日期
            const dateElements = document.querySelectorAll('.editable[data-default="年/月/日"]');
            dateElements.forEach(element => {
                element.textContent = currentDateStr;
            });
        });
    </script>
</body>

</html>